use day11::solution::*;

fn main() {
    let contents = std::fs::read_to_string("./day11/input.txt").unwrap();
    let mut image = Vec::new();
    for line in contents.lines() {
        image.push(line);
    }

    let mut galaxies = get_galaxies(&image);
    let empty_rows = get_empty_rows_position(&image);
    let empty_cols = get_empty_cols_position(&image);
    expand_image(&mut galaxies, empty_rows, empty_cols);
    let sum = get_steps_sum(galaxies);
    println!("{}", sum);
}
